import time
from selenium import webdriver

browser = webdriver.Chrome()
browser.get("http://jd.com")

time.sleep(2)

browser.get("http://ganji.com")

time.sleep(2)

# 后退
browser.back()

time.sleep(1)

# 前进
browser.forward()

time.sleep(1)

browser.quit()
